home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19990422-19990725
/
000021_news@watsun.cc.columbia.edu _Fri Apr 30 17:14:34 1999.msg
< prev
next >
Wrap
Internet Message Format
|
1999-07-23
|
4KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA22871
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 30 Apr 1999 17:14:34 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA12018
for kermit.misc@watsun.cc.columbia.edu; Fri, 30 Apr 1999 17:00:23 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
Subject: Re: DDE complient
Date: 30 Apr 1999 21:00:21 GMT
Organization: Columbia University
Message-ID: <7gd5l5$bne$1@newsmaster.cc.columbia.edu>
To: kermit.misc@watsun.cc.columbia.edu
In article <7gd3gc$d0j$1@nnrp1.dejanews.com>, <luda@bwsc.org> wrote:
: Frank- We have purchased a Melita auto-dialer system, that need to CUT/PASTE
: an account number from Melita to a VT320 host screen. I believe the terminal
: emulator need to support either DDE or EHLLAPI. We have Kermit. Will it work?
:
Here is the response we gave Alan Zipkin from Melita last week when he
asked does Kermit 95 support DDE or EHLLAPI:
No. K95 does not support either DDE or EHLLAPI at the present time.
The reason for not supporting EHLLAPI is that I have never been able
to find a specification for exactly what EHLLAPI is. If you have one
I would be more than happy to consider implementing it.
Is K95 being started from your application or independent of your
application?
Since you are working on NT it is possible for you to push keyboard
events into the K95 Window's event queue.
#include <windows.h>
#include <stdio.h>
int
main( int argc, char * argv[] )
{
INPUT_RECORD k ;
KEY_EVENT_RECORD * pKey=&k.Event.KeyEvent;
DWORD count = 0;
int rc=0, c, i ;
HWND hWin = NULL;
HANDLE hKbd = NULL;
char title[128];
if ( argc >= 2 ) {
sprintf(title,"%s - K-95",argv[1]);
}
else
strcpy(title,"K-95");
hWin = FindWindow(NULL, title);
if ( !hWin ) {
printf("Unable to find window handle\n");
return(1);
}
hKbd = GetStdHandle( STD_INPUT_HANDLE ) ;
while ( 1 ) {
if ( WAIT_OBJECT_0 == WaitForSingleObject(hKbd,-1) ) {
rc = ReadConsoleInput( hKbd, &k, 1, &count ) ;
}
if ( count &&
k.EventType == KEY_EVENT &&
pKey->bKeyDown) {
PostMessage(hWin,
WM_KEYDOWN,
pKey->wVirtualKeyCode,
(pKey->dwControlKeyState & ENHANCED_KEY?1:0)<<24 |
pKey->wVirtualScanCode << 16 |
1
);
PostMessage(hWin,
WM_KEYUP,
pKey->wVirtualKeyCode,
1 << 31 |
1 << 30 |
(pKey->dwControlKeyState & ENHANCED_KEY?1:0)<<24 |
pKey->wVirtualScanCode << 16 |
1
);
}
}
return(0);
}
Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
The Kermit Project * Columbia University
612 West 115th St #716 * New York, NY * 10025
http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org